package List;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-04-06
 * Time:19:16
 */
public class Text {
    public static void main(String[] args) {
        MyList fw=new MyList();

        fw.inserthead(5);
        fw.inserthead(4);
        fw.inserthead(9);
        fw.inserthead(9);
        fw.insertTail(9);
        fw.insertTail(7);
        fw.insertTail(9);
        fw.insertTail(6);
        fw.insertTail(9);
        fw.insertTail(8);
        System.out.println(fw.contains(5));
        fw.Show();
        fw.deleteSum(4);
        //fw.addIndex(3,5);
        fw.Show();
        fw.deleteNum(9);
        fw.Show();
    }
}
